import WhiteThemeLayout  from '@/layout/WhiteThemeLayout.vue';
import DarkThemeLayout from "@/layout/DarkThemeLayout.vue";
import NavLayout from "@/layout/NavLayout.vue";
import AppThemeLayout from "@/layout/AppThemeLayout .vue";
export const homeRoutes = [
  {
    path: '/app',
    component: AppThemeLayout,
    visible: false,
    redirect: '/app/dataResult',
    name:'成果应用',
    icon:'img_1',
    children: [
      {
        path: '/app/dataResult',
        component: () => import('@/views/app/dataResult.vue'),
        name: '成果大脑',
        visible: true,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '数据成果大脑', icon: 'el-icon-monitor', cache: false, affix: true},
      },
      {
        path: '/app/docLibrary',
        component: () => import('@/views/app/docLibrary.vue'),
        name: '文档智脑',
        visible: true,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '文档智脑', icon: 'el-icon-monitor', cache: false, affix: true},
      },
      {
        path: '/app/workData',
        component: () => import('@/views/app/workData.vue'),
        name: '智能检索',
        visible: true,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '智能检索', icon: 'el-icon-monitor', cache: false, affix: true},
      },

      {
        path: '/app/evaluation',
        component: () => import('@/views/app/evaluation.vue'),
        name: '文档智写',
        visible: true,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '文档智写', icon: 'el-icon-monitor', cache: false, affix: true},
      },
    
    ]
  },
  {
    path: '/region',
    component: DarkThemeLayout,
    visible: false,
    redirect: '/region/statistics',
    name:'区划底图更新',
    icon:'img_1',
    children: [
      {
        path: '/region/statistics',
        component: () => import('@/views/region/statistics.vue'),
        name: '统计管理',
        visible: true,
        meta: {title: '区划底图更新', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/region/boundary',
        component: () => import('@/views/region/boundary.vue'),
        name: '县级边界核定',
        visible: true,
        meta: {title: '区划底图更新', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/region/censusArea',
        component: () => import('@/views/region/censusArea.vue'),
        name: '县以下区划调整',
        visible: true,
        meta: {title: '区划底图更新', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/region/reportManager',
        component: () => import('@/views/region/reportManager.vue'),
        name: '上报管理',
        visible: false,
        meta: {title: '上报管理', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/region/regionSetting',
        component: () => import('@/views/region/regionSetting.vue'),
        name: '调查区划设置',
        visible: false,
        meta: {title: '上报管理', icon: 'el-icon-monitor', cache: true, affix: true},
      },

    ],
  },
  {
    path: '/quality',
    component: NavLayout,
    visible: false,
    redirect: '/quality/hazard',
    name:'数据更新质检',
    icon:'img_2',
    children: [
      {
        path: '/quality/hazard',
        component: () => import('@/views/quality/hazard.vue'),
        name: '数据预置',
        visible: true,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '数据预置', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/quality/dataUpdate',
        component: () => import('@/views/quality/dataUpdate.vue'),
        name: '数据更新',
        visible: true,
        icon:'iconfont icon-y-dongtaixinxizhuaqu',
        meta: {title: '数据更新', icon: 'el-icon-monitor', cache: true, affix: true},
      },
     
      {
        path: '/quality/dataInspect',
        component: () => import('@/views/quality/inspect/dataInspect.vue'),
        name: '数据质检',
        visible: true,
        icon:'iconfont icon-y-fenxi',
        meta: {title: '数据质检', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/quality/dataAudit',
        component: () => import('@/views/quality/dataAudit.vue'),
        name: '数据审核',
        visible: true,
        icon:'iconfont icon-y-fenxi',
        meta: {title: '数据审核', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/quality/dataInspect/detail',
        component: () => import('@/views/quality/inspect/dataInspectDetail.vue'),
        name: '数据质检任务详情',
        visible: false,
        icon:'iconfont icon-y-fenxi',
        meta: {title: '数据质检', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/quality/inspectDetail/list',
        component: () => import('@/views/quality/inspect/dataInspectDetailList.vue'),
        name: '数据质检结果列表',
        visible: false,
        icon:'iconfont icon-y-fenxi',
        meta: {title: '质检结果列表', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/quality/inspect/manualView',
        component: () => import('@/views/quality/inspect/InspectManualView.vue'),
        name: '人工质检',
        visible: false,
        icon:'iconfont icon-y-fenxi',
        meta: {title: '人工质检', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/quality/dataBrowsing',
        component: () => import('@/views/quality/dataBrowsing.vue'),
        name: '数据浏览',
        visible: false,
        icon:'iconfont icon-y-shujushitu',
        meta: {title: '数据浏览', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/quality/surveyAdd',
        component: () => import('@/views/quality/surveyAdd.vue'),
        name: '数据新增',
        visible: false,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '数据新增', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/quality/surveyPdf',
        component: () => import('@/views/quality/surveyPdf.vue'),
        name: '数据新增OCR',
        visible: false,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '数据新增OCR', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/quality/surveyView',
        component: () => import('@/views/quality/surveyView.vue'),
        name: '数据查询',
        visible: false,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '数据查询', icon: 'el-icon-monitor', cache: false, affix: true},
      },
      {
        path: '/quality/compareView',
        component: () => import('@/views/quality/compareView.vue'),
        name: '数据比对',
        visible: false,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '数据查询', icon: 'el-icon-monitor', cache: false, affix: true},
      },
      {
        path: '/quality/dataVerify',
        component: () => import('@/views/quality/dataVerify.vue'),
        name: '数据核对',
        visible: false,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '数据核对', icon: 'el-icon-monitor', cache: false, affix: true},
      },
      {
        path: '/quality/recycle',
        component: () => import('@/views/quality/recycle.vue'),
        name: '回收站',
        visible: false,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '回收站', icon: 'el-icon-monitor', cache: false, affix: true},
      },
      {
        path: '/quality/dataReport',
        component: () => import('@/views/quality/dataReportManager.vue'),
        name: '数据上报',
        visible: false,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '上报管理', icon: 'el-icon-monitor', cache: false, affix: true},
      },
     
      {
        path: '/quality/dataDiff',
        component: () => import('@/views/quality/diffDataChart.vue'),
        name: '数据差异分析',
        visible: false,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '数据差异分析', icon: 'el-icon-monitor', cache: false, affix: true},
      },
      {
        path: '/quality/indexView',
        component: () => import('@/views/quality/indexView.vue'),
        name: '数据指标',
        visible: false,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '数据指标', icon: 'el-icon-monitor', cache: false, affix: true},
      },
     
      
    ],
  },
  {
    path: '/verify',
    component: NavLayout,
    visible: false,
    redirect: '/verify/verifyWork',
    name:'调查数据核查',
    icon:'img_3',
    children: [
      {
        path: '/verify/verifyWork',
        component: () => import('@/views/quality/verify/verifyWork.vue'),
        name: '核查抽样',
        visible: true,
        icon:'iconfont icon-y-dongtaixinxizhuaqu',
        meta: {title: '核查抽样', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/verify/judgeTask',
        component: () => import('@/views/quality/verify/judgeTask.vue'),
        name: '任务分配',
        visible: true,
        icon:'iconfont icon-y-dongtaixinxizhuaqu',
        meta: {title: '任务分配', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/verify/judgeMark',
        component: () => import('@/views/quality/verify/judgeMark.vue'),
        name: '核查判定',
        visible: true,
        icon:'iconfont icon-y-dongtaixinxizhuaqu',
        meta: {title: '核查判定', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/verify/verifyStats',
        component: () => import('@/views/quality/verify/verifyStats.vue'),
        name: '核查统计',
        visible: true,
        icon:'iconfont icon-y-dongtaixinxizhuaqu',
        meta: {title: '核查统计', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/verify/verifyStatsDetail',
        component: () => import('@/views/quality/verify/verifyStatsDetail.vue'),
        name: '核查统计明细',
        visible: false,
        icon:'iconfont icon-y-dongtaixinxizhuaqu',
        meta: {title: '核查统计明细', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/verify/judgeMarkDetail',
        component: () => import('@/views/quality/verify/judgeMarkDetail.vue'),
        name: '核查判定明细',
        visible: false,
        icon:'iconfont icon-y-dongtaixinxizhuaqu',
        meta: {title: '核查判定明细', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/verify/judgeTaskDetail',
        component: () => import('@/views/quality/verify/judgeTaskDetail.vue'),
        name: '任务明细',
        visible: false,
        icon:'iconfont icon-y-dongtaixinxizhuaqu',
        meta: {title: '任务明细', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/verify/dataInfo',
        component: () => import('@/views/quality/verify/verifyDataInfo.vue'),
        name: '核查数据列表',
        visible: false,
        icon:'iconfont icon-y-dongtaixinxizhuaqu',
        meta: {title: '核查数据列表', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/verify/sampleRule',
        component: () => import('@/views/quality/verify/sampleRule.vue'),
        name: '抽样规则配置',
        visible: false,
        icon:'iconfont icon-y-dongtaixinxizhuaqu',
        meta: {title: '规则配置', icon: 'el-icon-monitor', cache: true, affix: true},
      },
    ]
  },
  {
    path: '/history',
    component: NavLayout,
    visible: true,
    redirect: '/quality/history',
    name:'历史版本数据',
    icon:'img_4',
    children: [
      {
        path: '/quality/history',
        component: () => import('@/views/quality/history.vue'),
        name: '历史数据',
        visible: true,
        icon:'iconfont icon-y-ziyuanguanli',
        meta: {title: '历史数据', icon: 'el-icon-monitor', cache: true, affix: true},
      },
    ]
  },
  {
    path: '/dataShow',
    component: NavLayout,
    visible: false,
    redirect: '/dataShow/index',
    name:'数据统计展示',
    icon:'img_5',
    children: [
      {
        path: '/dataShow/index',
        component: () => import('@/views/dataShow/index.vue'),
        name: '数据展示',
        visible: true,
        icon:'iconfont icon-y-yuceyinqing',
        meta: {title: '数据统计展示', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/dataShow/dataCount',
        component: () => import('@/views/dataShow/dataCount.vue'),
        name: '数据统计',
        visible: true,
        icon:'iconfont icon-y-shujushitu',
        meta: {title: '数据统计展示', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/dataShow/dataSummary',
        component: () => import('@/views/dataShow/dataSummary.vue'),
        name: '数据汇总',
        visible: true,
        icon:'iconfont icon-y-shujujicheng',
        meta: {title: '数据统计展示', icon: 'el-icon-monitor', cache: true, affix: true},
      },
    ],
  },
  {
    path: '/quality',
    component: NavLayout,
    visible: false,
    redirect: '',
    name:'常态工作管理',
    icon:'img_6',
  },
  {
    path: '/help',
    component: WhiteThemeLayout,
    visible: false,
    redirect: '/docs',
    name:'用户帮助中心',
    icon:'img_7',
    children: [
      {
        path: '/docs',
        component: () => import('@/views/docs/index.vue'),
        name: '用户帮助中心',
        visible: true,
        meta: {title: '用户帮助中心', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/docs/detail',
        component: () => import('@/views/docs/detail.vue'),
        name: '通知文件',
        visible: true,
        meta: {title: '通知文件', icon: 'el-icon-monitor', cache: true, affix: true},
      },
    ],
  },
  {
    path: '/userManager',
    name:'用户管理中心',
    icon:'img_8',
    redirect: '/userManager',
    component: NavLayout,
     children: [
      {
        path: '/userManager',
        component: () => import('@/views/user/userManager.vue'),
        name: '用户管理',
        visible: true,
        meta: {title: '用户管理', icon: 'el-icon-monitor', cache: true, affix: true},
      },
      {
        path: '/userManager/log',
        component: () => import('@/views/user/logManager.vue'),
        name: '日志管理',
        visible: true,
        meta: {title: '日志管理', icon: 'el-icon-monitor', cache: true, affix: true},
      },
    ]
  },
  
]
